package main

import (
	"fmt"
	"price/lastSymbol"
)

func main() {
	var obj lastSymbol.PriceInterface

	obj = lastSymbol.NewBinancePriceStruct()
	result, err := obj.GetPriceUsdt("BTC")
	fmt.Println("Binance", result, err)

	obj = lastSymbol.NewZbPriceStruct()
	result, err = obj.GetPriceUsdt("BTC")
	fmt.Println("zb", result, err)
	result, err = obj.GetPriceRmb("BTC")
	fmt.Println("zb rmb", result, err)

	obj = lastSymbol.NewHuoBiPriceStruct()
	result, err = obj.GetPriceUsdt("BTC")
	fmt.Println("huobi", result, err)

	obj = lastSymbol.NewOkexPriceStruct()
	result, err = obj.GetPriceUsdt("BTC")
	fmt.Println("okex", result, err)

	obj = lastSymbol.NewAofexPriceStruct()
	result, err = obj.GetPriceUsdt("BTC")
	fmt.Println("aofex", result, err)
	result, err = obj.GetPriceRmb("BTC")
	fmt.Println("aofex rmb", result, err)

}
